package com.example.miaosh.mapper;

import org.apache.ibatis.annotations.Param;

import com.example.miaosh.base.mapper.BaseMapper;
import com.example.miaosh.entity.ItemStock;

/**
 * 库存实体接口
 * 
 * @author kai
 *
 */
public interface ItemStockMapper extends BaseMapper<ItemStock> {
	// 库存扣减
	boolean decreaseStock(@Param("itemId") Integer itemId, @Param("amount") Integer amount);
}
